package com.itheima.youdianda;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication
@MapperScan("com.itheima.youdianda.mapper")
@ServletComponentScan      //开启web扫描
@EnableTransactionManagement  //开启对事物的管理
@EnableCaching       //开启注解缓存支持
public class youdiandaApplication {
    public static void main(String[] args) {
        SpringApplication.run(youdiandaApplication.class,args);
        log.info("优点达项目程序启动成功了...");
    }
}
